package cn.tedu.egweibo3.controller;

import cn.tedu.egweibo3.base.response.JsonResult;
import cn.tedu.egweibo3.base.response.StatusCode;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("v1/users/")
@Api(tags = "用户模块")
public class UserController {


    @GetMapping("select")
    @ApiOperation(value = "查询用户byID")
    @ApiImplicitParam(name = "id",value = "用户ID",required = true)
    public JsonResult selectByUserId(Integer id){
        log.debug("id="+id);
        if (id!=null)
        return JsonResult.ok();
        return new JsonResult(StatusCode.OPERATION_FAILE);
    }
}
